import waves from './waves/index.js'
import waterMarker from '../../local_modules/ZhiXinLib/directive/waterMarker/index'
import permission from './permission/index.js'
import copy from './copy/index.js'
import longpress from './longpress/index.js'
import emoji from './emoji'
import LazyLoad from './lazyLoad'
import Screenfull from './screenfull'
import backtop from './backtop'
import empty from './empty'
import expandClick from './expandClick'
import preventReClick from './preventReClick'
import resize from './resize'
import draggable from './draggable'
import showTitle from './showTitle'

// 自定义指令 对象，方便注册
const directives = {
    waves,
    waterMarker,
    permission,
    copy,
    longpress,
    emoji,
    LazyLoad,
    Screenfull,
    backtop,
    empty,
    expandClick,
    preventReClick,
    resize,
    draggable,
    showTitle
}
// >--> 批量注册指令
export default {
    install(Vue) {
        Object.keys(directives).forEach((key) => {
            Vue.directive(key, directives[key])
        })
    }
}
